/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.WindowManager;

public final class cy {
    public static int a;
    public static int b;

    public static int a(Activity paramActivity) {
        if (a == 0)
            c(paramActivity);
        return a;
    }

    public static int b(Activity paramActivity) {
        if (b == 0)
            d(paramActivity);
        return b;
    }

    public static void c(Activity paramActivity) {
        DisplayMetrics localDisplayMetrics = new DisplayMetrics();
        paramActivity.getWindowManager().getDefaultDisplay().getMetrics(localDisplayMetrics);
        a = localDisplayMetrics.widthPixels;
    }

    public static void d(Activity paramActivity) {
        DisplayMetrics localDisplayMetrics = new DisplayMetrics();
        paramActivity.getWindowManager().getDefaultDisplay().getMetrics(localDisplayMetrics);
        b = localDisplayMetrics.heightPixels;
    }
}